package com.xqledu.admin.entry.vo;

import com.xqledu.admin.entry.pojo.SysRole;
import com.xqledu.admin.entry.pojo.SysUser;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.List;

/**
 * @author 向其林
 * @version 1.0
 * @description: TODO
 * @date 2023/7/6 0006 21:56
 */
@Getter
public class UserInfo {
    private SysUser user;
    private List<SysRole> roles;
    private Boolean isEnabled;

    public UserInfo(SysUser user, List<SysRole> roles) {
        this.user = user;
        this.roles = roles;
        this.isEnabled = user.getState().equals("1");
    }
}
